package cn.edu.zut.hhr.mapper;

import cn.edu.zut.hhr.entity.Tag;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 标签表 Mapper 接口
 * </p>
 *
 * @author HHR
 * @since 2021-08-21
 */
public interface TagMapper extends BaseMapper<Tag> {

    List<Tag> getByAid(@Param("id") long id);

    List<Integer> getHotTagsId(@Param("count") int count);

    List<Tag> getTagsById(@Param("tagIds") List<Integer> tagIds);

    void insertMany(List<Tag> tags);
}
